package com.tsxy.mall.controller.api;

import com.tsxy.mall.service.UsedBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/usedBook")
public class APIUsedBookController {
    @Autowired
    private UsedBookService usedBookService;

    @GetMapping("/getAll")
    public List getALl(){
        return usedBookService.getAll();
    }
}
